@import "./variables.less";
@import "./sidebar.less";
/* common css start */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
  box-sizing:border-box;
  // color:rgba(0,0,0,0.65);
}
li,a {
  text-decoration: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* common css end */
html,body {
  // width: 1920px;
  // height:1080px;
  // min-height: 1080px;
  width:100%;
  height:100%;
  margin:0 auto;
  min-width: 1366px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow: initial;
}
body::-webkit-scrollbar {
  height: 10px;
}
body{
  font-size:12px;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex:1
}
.ov-hidden {
  overflow: hidden;
}
@flex-jc: {
  start: flex-start;
  end: flex-end;
  center: center;
  between: space-between;
  around: space-around;
  evenly: space-evenly;
};
@flex-ai: {
  start: flex-start;
  end: flex-end;
  center: center;
  stretch: stretch;
};
each(@flex-jc,{
  .jc-@{key} {
    justify-content: @value;
  }
})
each(@flex-ai,{
  .ai-@{key} {
    align-items: @value;
  }
});
.generate-classes(@i) when (@i > 0) {
  .m-@{i} {
    margin: unit(@i, px);
  }
  .mt-@{i} {
    margin-top: unit(@i, px);
  }
  .mb-@{i} {
    margin-bottom: unit(@i, px);
  }
  .ml-@{i} {
    margin-left: unit(@i, px);
  }
  .mr-@{i} {
    margin-right: unit(@i, px);
  }

  .p-@{i} {
    padding: unit(@i, px);
  }
  .pt-@{i} {
    padding-top: unit(@i, px);
  }
  .pb-@{i} {
    padding-bottom: unit(@i, px);
  }
  .pl-@{i} {
    padding-left: unit(@i, px);
  }
  .pr-@{i} {
    padding-right: unit(@i, px);
  }

  .fz-@{i} {
    font-size: unit(@i, px);
  }

  .generate-classes(@i - 1);
}

.generate-classes(200);

.el-table{
  background:transparent;
}
.el-table__body tr.current-row > td.el-table__cell {
  background-color: #fcfcfc;
}
.el-table__header tr th{
  background-image: linear-gradient(180deg, #fafafa, #fafafa 100%);
  font-family: PingFangSC-Semibold;
  font-size: 14px;
  color: #333333;
  font-weight: 600;
}
.el-table__body {
  font-size:12px;
}
.el-table__body tr{
    &:last-of-type:not([display = none]) td{
      &:first-of-type {
        border-radius:0 0 0 10px;
      }
      &:last-of-type {
        border-radius:0 0 10px 0;
      }
    }
  
  td {
    padding:0 !important;
    height:68px !important;
    border-top: 1px solid rgba(237,236,243,1);
    border-bottom: 0 !important;
    line-height:12px !important;
    &:first-of-type {
      border-left:1px solid rgba(237,236,243,1);
    }
    &:last-of-type {
      border-right:1px solid rgba(237,236,243,1);
    }
    .cell {
      overflow:visible;
      .el-badge__content.is-fixed {
        top: -5px;
      }
    }
  }
}
// .el-table__header-wrapper{
//   border-radius: 0 0 10px 10px;
// }
.el-pagination.is-background .btn-next, 
.el-pagination.is-background .btn-prev, 
.el-pagination.is-background .el-pager li {
  background-color: #fefefe;
}

.el-table::before{
  height: 0;
}
.el-table__body-wrapper {
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #edecf3;
}
// .el-table{
//   border-radius: 10px;
// }
.el-table [class*=el-table__row--level] .el-table__expand-icon{
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.el-table__expand-icon--expanded {
  transform: translateY(-50%) rotate(90deg) !important;
}
.el-table__body tr:hover td{
  border-top: 1px solid #74D8F1 !important;
  border-bottom: 1px solid #74D8F1 !important;
  background-color: inherit !important;
  &:first-of-type {
    border-left:1px solid #74D8F1 !important;
  }
  &:last-of-type {
    border-right:1px solid #74D8F1 !important;;
  }
}
.el-badge__content {
  font-family: PingFangSC-Semibold;
  font-size: 10px;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  background: #f4a8a8;
}
// tabs
.el-tabs {
  padding-left: 32px;
  user-select: none;
  .el-tabs__item {
    font-family: PingFangSC-Semibold;
    font-size: 15px;
    color: #333333;
    letter-spacing: 0;
    text-align: left;
    font-weight: 600;
    display: table-cell;
    vertical-align: bottom;
    height: 50px;
    box-shadow: none !important;
    &.is-active {
      color: #4ea4dc;
      // font-size: 18px;
    }
  }
  .el-badge__content {
    font-family: PingFangSC-Semibold;
    font-size: 10px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    background: #f4a8a8;
  }
  .el-tabs__nav-wrap:after {
    height: 0;
  }
}

input::-webkit-input-placeholder {
  color: #aaaaaa !important;
}
input::-moz-input-placeholder {
  color: #666 !important;
}
input::-ms-input-placeholder {
  color: #666 !important;
}

.el-dialog {
  background: #ffffff;
  box-shadow: 0px 5px 6px 0px rgba(175, 193, 198, 0.13);
  border-radius: 15px !important;
}

 /* 定义滚动条样式 */
 ::-webkit-scrollbar {
  width: 10px;
  height: 14px;
  background-color: #fff;
}
::-webkit-scrollbar-track {
  border-radius: 14px;
  background-color: #fff;
}
:hover::-webkit-scrollbar-track {
  background-color: #fff;
}
::-webkit-scrollbar-thumb {
  border-radius: 14px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
  background-color: #a8a8a8;
  transition: background-color 1s;
}
// ::-webkit-scrollbar-corner{
//   background-color: #030b21;
// }
 /* 定义滚动条样式 */
//  .el-input {
//   width: 300px;
// }
// .el-date-editor.el-input, .el-date-editor.el-input__inner {
//   width:300px;
// }
.el-button--primary {
  height:32px;
  padding:8px 20px;
  background:#1a59a8;
  &:hover,&:focus {
    background:#163d6c;
  }
  span {
    color:#fff;
  }
}
.el-button--default {
  height:32px;
  padding:8px 20px;
}
.el-date-editor .el-range-input, .el-date-editor .el-range-separator {
  font-size:12px;
}
.el-date-range-picker__editor {
  width:auto;
}

// .el-input {
//   width: 145px;
// }
.el-tabs__active-bar {
  background-image: linear-gradient(180deg, rgba(45, 204, 112, 1) 0, rgba(52, 152, 219, 1) 100%);
  height:4px;
}
.el-tabs .el-tabs__item.is-active {
  color:rgba(51, 51, 51, 1);
}
.el-tabs .el-tabs__item {
  color:rgba(174, 174, 174, 1);
  overflow-wrap: break-word;
  color: rgba(174, 174, 174, 1);
  font-size: 20px;
  font-family: MicrosoftYaHei-Bold-Regular;
  text-align: center;
  white-space: nowrap;
}  

.el-slider__bar {
  background-image: linear-gradient(
    90deg,
    rgba(45, 204, 112, 1) 0,
    rgba(52, 152, 219, 1) 100%
  );
}

.el-slider__button {
  border: 5px solid transparent;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: linear-gradient(to right, #fff, #fff),
    linear-gradient(
      to right,
      rgba(45, 204, 112, 1),
      rgba(52, 152, 219, 1)
    );
}

.el-message,.el-message--error {
  z-index:999999999;
}

.el-breadcrumb {
  font-size:20px;
}

.el-checkbox {
  margin-left:10px;
  margin-right:10px !important;
}

.el-checkbox.is-bordered.select-all:not(.is-checked) {
  border: 1px solid rgba(220, 220, 220, 1);
}

.el-checkbox.is-bordered.select-all {
  height: 35px !important;
  vertical-align: middle;
}
.el-checkbox.is-bordered.is-checked {
  border-color: #3BAFDA;
}
.el-tooltip__popper  {
  font-size:18px;
}

.el-tabs__header.is-top {
  background:#fafbfc;
  height:56px;
}

.el-dialog__header {
  background-image: linear-gradient(180deg, rgba(26, 188, 156, 1) 0, rgba(52, 152, 219, 1) 100%);
  border-radius: 6px 6px 0px 0px;
  height: 60px;
  color: #FFF;
}
.el-dialog__title {
  color: #FFF;
}

.card-wrapper {
  transition: all 0.1s;
  cursor: pointer;
  flex: 1;
  width: 100%;
  flex-wrap:wrap;
  display:flex;
  align-content:flex-start;
  .img-box {
    border-radius: 8px;
    height: 250px;
    width: 160px;
  }
  &.active {
    border: 1px solid #09c7aa;
  }
  .text-wrapper {
    width: 160px;
  }
}
.btn-group {
  button {
    margin-bottom:10px;
  }
}
.el-dialog__headerbtn .el-dialog__close {
  color:#fff;
  &:hover {
    color:rgba(255,255,255,.8);
  }
}